package org.studio.crusoe.framework.pub.thread;

import org.junit.Test;
import org.studio.crusoe.framework.pub.exception.ThreadException;

public class ThreadContextTester {
    @Test
    public void testContext() throws ThreadException, InterruptedException {
        TestThread t1 = new TestThread();
        t1.setThreadNum(1);
        TestThread t2 = new TestThread();
        t2.setThreadNum(2);
        Thread th1 = new Thread(t1);
        Thread th2 = new Thread(t2);
        th1.start();
        th2.start();
        Thread.sleep(5000);
    }
}
